package com.example.administrator.mvp.module.user;

import com.example.administrator.mvp.base.BasePresenter;
import com.example.administrator.mvp.model.user.UserModel;

/**
 * 执行与用户信息相关的业务
 */
public class UserPresenter extends BasePresenter<UserContract.View, UserModel> implements UserContract.Presenter {

    public UserPresenter(UserContract.View view, UserModel model) {
        super(view, model);
    }

    @Override
    public void getUserInfo(String token) {
        view.showUserInfo(model.getUserInfo(token));
    }
}
